package com.dragoncombin.homework.Problem03;

// 将通话套餐和上网套餐中相同的特征和行为提取出来组成抽象套餐类
public abstract class AbstractPackage {

    // 通话套餐和上网套餐共同的特征：每月资费
    private int chargePerMonth;

    public int getChargePerMonth() {
        return chargePerMonth;
    }

    public void setChargePerMonth(int chargePerMonth) {
        this.chargePerMonth = chargePerMonth;
    }

    // 通话套餐和上网套餐共同的行为：显示所有套餐信息
    public abstract void show();
}
